﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace SurfacePlatform
{
    class Touchable
    {
        private Vector2 position;
        private Vector2 lastPosition;
        private Vector2 direction;
        private Vector2 gravity;
        private float radius;
        private Vector2 fingerOffset;
        private bool fingerLock;
        private bool flaggedForRemoval = false;

        public Vector2 Position
        {
            get { return position; }
            set { position = value; }
        }
        public Vector2 LastPosition
        {
            get { return lastPosition; }
            set { lastPosition = value; }
        }
        public Vector2 Direction
        {
            get { return direction; }
            set { direction = value; }
        }
        public Vector2 Gravity
        {
            get { return gravity; }
            set { gravity = value; }
        }
        public float Radius
        {
            get { return radius; }
            set { radius = value; }
        }
        public Vector2 FingerOffset
        {
            get { return fingerOffset; }
            set { fingerOffset = value; }
        }
        public bool FingerLock
        {
            get { return fingerLock; }
            set { fingerLock = value; }
        }
        public bool FlaggedForRemoval
        {
            get { return flaggedForRemoval; }
            set { flaggedForRemoval = value; }
        }
        public float getOrientation()
        {
            return (float)Math.Atan2(gravity.Y, gravity.X);
        }
    }
}
